import { Dispatch } from 'redux'
export const DEL_LIST = 'DEL_LIST'

export function del_list(id: number) {
	return { type: DEL_LIST, payload: id }
}
export const ADD_LIST = 'ADD_LIST'

export function add_list(payload: any) {
	return (dispatch: Dispatch) => {
		dispatch({ type: 'ADD_LIST', payload })
	}
}